//
//  JKPersonalCenterCellModel.swift
//  afanti
//
//  Created by albert on 16/4/15.
//  Copyright © 2016年 albert. All rights reserved.
//

import UIKit

class JKPersonalCenterCellModel: NSObject {
    var title: String?
    var icon: String?
    
    init(dict:[String : NSObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    /** 字典转模型 */
    class func dataList() -> [JKPersonalCenterCellModel]{
        let path = NSBundle.mainBundle().pathForResource("personalCenter", ofType: "plist")
        
        let dictArr = NSArray(contentsOfFile: path!)
        
        var tmpArr = [JKPersonalCenterCellModel]()
        
        for dict in dictArr!{
            let model = JKPersonalCenterCellModel(dict: dict as! [String : NSObject])
            tmpArr.append(model)
        }
        
        return tmpArr
    }
}
